using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using FiltronASP.Helpers.FileUpload;

namespace FiltronASP.Areas.Admin.Controllers
{
    public class UploadController : Controller
    {
        /// <summary>
        /// Metoda do obslugi uploadu obrazka.
        /// </summary>
        /// <param name="pageId">id strony</param>
        /// <param name="galleryId">id galerii</param>
        /// <returns>ciag znakow rozpoznawany przez flasha</returns>
        public ActionResult ProceedUpload(int? pageId, int? galleryId)
        {
            UploadHelper uploadHelper = new UploadHelper();
            return Content(uploadHelper.DoUpload(pageId, galleryId, Request));
        }

    }
}
